package ma.techit.pfe.agence.voyage.util;

import java.util.List;

import ma.techit.pfe.agence.voyage.model.ServiceVoiture;

import org.codehaus.jackson.annotate.JsonProperty;


public class JsonJtableServiceVoitureListResponse {
	private String result;
	private List<ServiceVoiture> records;
	private int TotalRecordCount;
	private String message;
	
	// constructor
	
	public JsonJtableServiceVoitureListResponse(String result, List<ServiceVoiture> records,
			int totalRecordCount) {
		super();
		this.result = result;
		this.records = records;
		TotalRecordCount = totalRecordCount;
	}
	
	public JsonJtableServiceVoitureListResponse(String result, String message) {
		super();
		this.result = result;
		this.message = message;
	}
	
	@JsonProperty("Result")
	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@JsonProperty("Records")
	public List<ServiceVoiture> getRecords() {
		return records;
	}

	public void setRecords(List<ServiceVoiture> records) {
		this.records = records;
	}
	
	@JsonProperty("TotalRecordCount")
	public int getTotalRecordCount() {
		return TotalRecordCount;
	}

	public void setTotalRecordCount(int totalRecordCount) {
		TotalRecordCount = totalRecordCount;
	}

	@JsonProperty("Message")
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
